package org.UserHouse.Test;

import org.UserHouse.Dao.Imp.UserDaoImp;
import org.UserHouse.Dao.UserDao;
import org.UserHouse.Utils.Dbutils;
import org.UserHouse.entity.User;

import java.sql.Connection;
import java.util.List;

/**
 * @author bin
 * @date 2024-11-26
 */
public class UserDaoTest {
    public static void main(String[] args) {
        UserDao userDao = new UserDaoImp();
        User user = new User();
        user.setUname("1");
        List<User> list = userDao.selectPage(user, 1, 5);

        Long count = userDao.selectPageCount(user);

        System.out.println(count);
        for (User u : list) {
            System.out.println(u.getUname());
        }
    }
}
